package com.tanfuqi.sicent.protocol.message

data class Message(
        var type: Int = 0x8001,
        var sign: Int = 0xAB_65_AB_65L.toInt(),
        var companyId: Int = 200008,
        var id: Int = 0,
        var body: Any? = null
)
//{
//    private val typeMap = mapOf(
//            0x8001 to objectMapper.typeFactory.constructType(Login::class.java),
//            0x80008001L.toInt() to objectMapper.typeFactory.constructParametricType(ResponseBody::class.java, ShopInfo::class.java),
//            0x8003L.toInt() to objectMapper.typeFactory.constructType(QueryBody::class.java),
//            0x80008003L.toInt() to objectMapper.typeFactory.constructParametricType(ResponseBody::class.java,
//                    objectMapper.typeFactory.constructCollectionType(List::class.java,
//                            Member::class.java)),
//            0x8041L.toInt() to objectMapper.typeFactory.constructType(Member::class.java),
//            0x80008041L.toInt() to objectMapper.typeFactory.constructType(ResponseBody::class.java)
//    )
//
//    override fun toString(): String = this.toJson()
//    fun setBody(json: String) {
//    }
//
//}
